package com.atguigu.springcloud.service.handler;

import com.atguigu.springcloud.entity.CommonResult;
import com.atguigu.springcloud.entity.Payment;
import com.atguigu.springcloud.service.OrderService;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;

@Service
public class OrderServiceHandler implements OrderService {
    @Override
    public CommonResult<Payment> paymentSQL(@PathVariable("id") Long id) {
        return new CommonResult<>(666, "OrderServiceHandler降级", new Payment(id, "null"));
    }
}
